﻿CREATE TABLE [dbo].[ArticulosListasPreciosCompras] (
    [IdArticulo]          INT             NOT NULL,
    [IdListaPrecioCompra] INT             NOT NULL,
    [Valor]               DECIMAL (19, 4) NOT NULL,
    CONSTRAINT [PK_ArticulosListasPreciosCompras] PRIMARY KEY CLUSTERED ([IdArticulo] ASC, [IdListaPrecioCompra] ASC),
    CONSTRAINT [FK_ArticulosListasPreciosCompras_Articulos] FOREIGN KEY ([IdArticulo]) REFERENCES [dbo].[Articulos] ([IdArticulo]),
    CONSTRAINT [FK_ArticulosListasPreciosCompras_ListasPreciosCompras] FOREIGN KEY ([IdListaPrecioCompra]) REFERENCES [dbo].[ListasPreciosCompras] ([IdListaPrecioCompra])
);

